package main;

import userinfo.Login;
import userinfo.Register;

import java.util.Scanner;

/**
 * 用户登录
 * @author Administrator
 *
 */
public class Main {
	public static void main(){
		Scanner in=new Scanner(System.in);
		System.out.println("-------------------欢迎进入武汉厚薄饭卡业务系统-------------------");
		System.out.println("1.登录界面，请按1");
		System.out.println("2.注册界面，请按2");
		System.out.println("3.退出系统，请按0");
		System.out.println("请输入：");
		int count=in.nextInt();
		switch (count) {
			case 1:
				Login.login();
				break;
			case 2:
				Register.register();
				main();
				break;
			case 0:
				System.exit(0);
				break;
			default:
				System.out.println("输入有误！");
				break;
		}
	}
	public static void main(String[] args) {
		main();
	}
}